package com.gator.desig_mode.factoryMethod;


import java.util.Calendar;
import java.util.Date;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class Test {

  public static void main(String[] args) {

    /*Business business = new Business();
    business.setFlag(1);
    business.setPara("Benz");
    //根据工厂和上游参数调用对应方法
    business.setCarFactory(new ChinaCarFactory());*/

    Calendar instance = Calendar.getInstance();
    Date time = instance.getTime();
    System.out.println(time);

  }

}
